package com.example.bookstore.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.bookstore.common.PageResult;
import com.example.bookstore.common.Result;
import com.example.bookstore.dto.OrdersRequest;
import com.example.bookstore.dto.QueryOrderParamsDto;
import com.example.bookstore.entity.Cart;
import com.example.bookstore.entity.Orders;

public interface OrderService extends IService<Orders> {
    Result createOrders(OrdersRequest orders, String type);

    PageResult<Orders> selectByPageAndCondition(int pageSize, int currentPage, QueryOrderParamsDto params);

    Result getOrderAddress(Integer id);

    Result getOrderDetail(Integer id);

    Result cancelOrder(Integer id);

    Result updateStatus(Integer ordersId, String status);

    Result submitAddress(Integer ordersId,Integer addresseeId);

    Result updateAppraise(Integer ordersId);

}
